//模块的构造方法
function Orderform(rs) {
	this.id=rs.id;
	this.code=rs.code;
	this.createdate=rs.createdate;
	this.user_id=rs.user_id;
	this.taxi_id=rs.taxi_id;
	this.remark=rs.remark;
	this.voice=rs.voice;
	this.price=rs.price;
}
//定义表名
Orderform.entityName = 'orderform';
//主键
Orderform.entityIndex = 'id';
//redis过期时间
Orderform.entityExpiration = 60*5;
Orderform.entityCreated = 'created';
//属性
Orderform.propNamesAsArray = [ 'id', 'code', 'createdate', 'user_id','taxi_id','remark','voice','price'];
//获得class用于redis删除对象
Orderform.prototype.getClass = function() {
    return Orderform;
};
//获得表名
Orderform.prototype.getEntityName = function() {
    return Orderform.entityName;
};
//获得主键
Orderform.prototype.getEntityIndex = function() {
    return Orderform.entityIndex;
};
//获得过期时间
Orderform.prototype.getEntityExpiration = function() {
    return Orderform.entityExpiration;
};

Orderform.prototype.getEntityCreated = function() {
    return Orderform.entityCreated;
};
//获得属性名称列表
Orderform.prototype.getPropNamesAsArray = function() {
    return Orderform.propNamesAsArray;
};
//获得属性名称列表
Orderform.prototype.asArray = function() {
    return [
        this.id,
        this.code,
        this.createdate,
        this.user_id,
        this.taxi_id,
        this.remark,
        this.voice,
        this.price
    ];
};
module.exports.Orderform = Orderform;